//
//  TestView.swift
//  MakeMoney
//
//  Created by Fan ZhiQiang on 2024/12/9.
//

import SwiftUI



struct TestView: View {
    
    var body: some View {
        List(total) { lottery in
            ScrollView(.horizontal) {
                HStack {
                    VStack {
                        Text("日期")
                        Text("\(lottery.dateStr)")
                        //Text(String(format: "%.15f", lottery.sumMeanFront1))
                    }
                    VStack {
                        Text("差值21")
                        Text("\(lottery.zMinus.currentMinus21)")
                        //Text(String(format: "%.15f", lottery.sumMeanFront1))
                    }
                    VStack {
                        Text("差值32")
                        Text("\(lottery.zMinus.currentMinus32)")
                    }
                    VStack {
                        Text("差值43")
                        Text("\(lottery.zMinus.currentMinus43)")
                    }
                    VStack {
                        Text("差值54")
                        Text("\(lottery.zMinus.currentMinus54)")
                    }
                }
            }
            
        }
    }
}

#Preview {
    TestView()
}

class TestPath: PathName { }
